package com.xbongbong.pro.performanceset.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * @description: 删除业绩目标指标
 * @Author: hongxiao
 * @date: 2019-02-01 14:36
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class PerformanceSetDeleteDTO extends BaseDTO {
    /**
     * 指标id
     */
    @NotNull(message = "{dto.msg.performanceSetDelete.id.NotNull}")
    private Long id;
    /**
     * 指标类型：1系统指标,2自定义指标
     */
    @NotNull(message = "指标类型不能为空")
    @Range(min=1,max=2,message = "指标类型传值异常")
    protected Integer statisticsType;
}
